#include<stdio.h>
int main(){
    int n,i;
    double sum=0;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        sum+=1.0/(2*i+1);
    }
    printf("sum = %.6lf\n",sum);
    return 0;
}